package com.yifn.config;

import com.yifn.pojo.Dog;
import com.yifn.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

@Configuration
@ComponentScan("com.yifn.pojo")
public class appConfiguration {

    @Bean
    public User user(){
        return new User();
    }

    @Bean
    public Dog dog(){
        return new Dog();
    }

}
